/**
 * @author shahma
 */
dojo.provide("medryx.model.Team");
dojo.require("medryx.model.Entity");
dojo.require("medryx.orm.Property");
dojo.require("medryx.orm.Collection");
dojo.require("medryx.model.TeamPager");

dojo.declare("medryx.model.Team", medryx.model.Entity, {
	abbreviation:      new medryx.orm.Property(),

	pagers:            new medryx.orm.Collection({associationClass:"medryx.model.TeamPager"}),

	category:          new medryx.orm.Property(),

	categorySortIndex: new medryx.orm.Property(),

	name:              new medryx.orm.Property(),

	pmu:               new medryx.orm.Property(),

	color:             new medryx.orm.Property(),
	
	queries: [
	   {name:"All", parameters:{
	   	properties:["*"],
		sort:["categorySortIndex", "name"]
	   }}
	],
	
	toString:function() {
		return this.name;
	}
})



